package guda.sqladmin.gen;

import guda.gen.DemoGen;

/**
 * Created by well on 15/3/13.
 */
public class AutoGen {

    private static String jdbcPath = "/Users/well/.m2/repository/mysql/mysql-connector-java/5.1.9/mysql-connector-java-5.1.9.jar";

    private static String jdbUrl = "jdbc:mysql://127.0.0.1:3306/sqladmin?useUnicode=true&characterEncoding=utf8";

    public static void main(String[] args){
        DemoGen demoGen = new DemoGen();
        demoGen.setJdbcPassword("");
        demoGen.setJdbcUsername("root");
        demoGen.setJdbcPath(jdbcPath);
        demoGen.setJdbUrl(jdbUrl);
        demoGen.setDriverClass("com.mysql.jdbc.Driver");
        String baseDir = (String)System.getProperties().get("user.dir");
        demoGen.genDAOWithDir("table_field", "sqladmin", "guda",baseDir);
//        demoGen.genDaoXMLWithDir("project_table","sqladmin","guda",baseDir);
//        demoGen.genBizWithDir(baseDir,"project_table","sqladmin","guda");
//        demoGen.genActionWithDir(baseDir,"project_table","sqladmin","guda","/webapps/template/");





    }
}
